package top.braycep.utils;

import top.braycep.ui.MainUI;

import javax.swing.*;

public class AppUtils {
    public static void loadDB(String dbPath) {

    }

    public static void showInfo(MainUI mainUI, String title, String msg) {
        JOptionPane.showMessageDialog(mainUI, msg, title, JOptionPane.INFORMATION_MESSAGE);
    }

    public static void showError(MainUI mainUI, String title, String msg) {
        JOptionPane.showMessageDialog(mainUI, msg, title, JOptionPane.ERROR_MESSAGE);
    }

    public static void showWarning(MainUI mainUI, String title, String msg) {
        JOptionPane.showMessageDialog(mainUI, msg, title, JOptionPane.WARNING_MESSAGE);
    }
}
